/*
 * @Author: zoufengfan
 * @Date: 2022-01-10 15:27:25
 * @LastEditTime: 2022-01-10 16:12:49
 * @LastEditors: zoufengfan
 * 每个微应用必须的3个钩子
 */
let dom = null;

export const bootstrap = async () => {
  console.log("应用正在启动");
};
export const mount = async () => {
  console.log("应用正在挂载");
  dom = document.createElement("a");
  dom.innerHTML = "a标签";
  document.body.appendChild(dom);
};
export const unmount = async () => {
  console.log("应用正在卸载");
  document.body.removeChild(dom);
};
